export const tableHeader = [
  {
    label: "姓名",
    prop: "name",
    width: "",
    type: "switch",
  },
  {
    label: "年龄",
    prop: "age",
    width: "",
    sortable: true,
    sortMethod: (a, b) => {
      //自定义排序
      return a.age - b.age;
    },
    // type: "radio",
    // columnList: [
    //   { label: "10", value: 10 },
    //   { label: "20", value: 20 },
    //   { label: "30", value: 30 },
    //   { label: "40", value: 40 },
    // ],
  },
  {
    label: "家乡",
    prop: "home",
    width: "",
    type: "select",
    columnList: [
      { label: "北京", value: "beijing" },
      { label: "上海", value: "shanghai" },
      { label: "广州", value: "guangzhou" },
      { label: "深圳", value: "shenzhen" },
    ],
  },
  {
    label: "爱好",
    prop: "hobby",
    width: "",
    children: [
      {
        label: "邮编",
        prop: "zip",
        width: "",
        type: "slot",
      },
      {
        label: "地址",
        prop: "address",
        width: "",
        type: "slot",
      },
    ],
  },
  {
    label: "创建时间",
    prop: "createTime",
    type: "slot",
  },
  {
    label: "操作",
    prop: "opt",
    width: "",
    type: "operation",
  },
];
